import re

s = 'https://img1.baidu.com/it/u=272155668,1962283813&fm=26&fmt=autohttps://img1.baidu.com/it/u=272155668,1962283813&fm=26&fmt=autohttps://img1,baidu.com/it/u=272155668,1962283813&fm=26&fmt=autohttps://img0.baidu.com/it/u=1934854801,2871685401&fm=253&fmt=autohttps://img0.baidu.com/it/u=1934854801,2871685401&fm=253&fmt=autohttps://img0.baidu.com/it/u=1934854801,2871685401&fm=253&fmt=auto'
pattern = r'https://img\d{1}.baidu.com/it/u=\d*,\d*&fm=\d*&fmt=auto'

lst = re.findall(pattern, s)
for item in lst:
    print(item)


